package com.demo.flight.mapper;

import com.demo.flight.entity.Customer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author ssy
 * @create 2022-03-23 10:13
 */
@Mapper
public interface CustomerMapper {
    void insert(Customer customer);
    void deleteById(Integer customerId);
    List<Customer> selectAll();
    List<Customer> selectByCondition(Customer customer);
    void update(Customer customer);
    int countByPhone(String phone);
    int countById(Integer customerId);
    int countByCondition(Customer customer);
}
